package com.hxiaoyi.cloud.controller;

import com.hxiaoyi.cloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * SendMessageController
 *
 * @author 黄敬意
 * @date 2022-03-05 19:14
 **/
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider iMessageProvider;

    /**
     * 往消息通道发送消息
     * @return String
     */
    @GetMapping(value = "/sendMessage")
    public String sendMessage(){
        return iMessageProvider.send();
    }

}
